package com.neuedu.studentmanage.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class OutRequest {

	private Integer outId;

	private Student student;
	private Class classId;

	private String reason;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date start;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date end;

	private Teacher teacher;

	public Integer getOutId() {
		return outId;
	}

	public OutRequest(Integer outId) {
		super();
		this.outId = outId;
	}

	public void setOutId(Integer outId) {
		this.outId = outId;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Class getClassId() {
		return classId;
	}

	public void setClassId(Class classId) {
		this.classId = classId;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Date getStart() {
		return start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public OutRequest() {
		super();
		// TODO Auto-generated constructor stub
	}

	public OutRequest(Integer outId, Student student, Class classId, String reason, Date start, Date end,
			Teacher teacher) {
		super();
		this.outId = outId;
		this.student = student;
		this.classId = classId;
		this.reason = reason;
		this.start = start;
		this.end = end;
		this.teacher = teacher;
	}

	@Override
	public String toString() {
		return "OutRequest [outId=" + outId + ", student=" + student + ", classId=" + classId + ", reason=" + reason
				+ ", start=" + start + ", end=" + end + ", teacher=" + teacher + "]";
	}

}
